package com.bussiness.system.api;

import java.util.Arrays;
import java.util.Map;
import java.util.List;

import com.bussiness.system.entity.UserEntity;
import com.bussiness.system.util.Result;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

/**
* 系统用户
*
* @author xianliru
* @email 402701653@qq.com
* @date 2018-08-13 23:47:45
*/
@RequestMapping("sys/user")
public interface UserControllerApi {

    /**
    * 列表
    */
    @RequestMapping("/list")
    public Result list(@RequestBody UserEntity query);

    /**
     * 用户登录接口
     * @param entity
     * @return
     */
    @RequestMapping("/login")
    public Result login(@RequestBody UserEntity entity, HttpServletResponse response);
    /**
    * 信息
    */
    @RequestMapping("/info/{userId}")
    public Result info(@PathVariable("userId") Long userId);
    /**
    * 保存
    */
    @RequestMapping("/save")
    public Result save(@RequestBody UserEntity user);

    /**
    * 修改
    */
    @RequestMapping("/update")
    public Result update(@RequestBody UserEntity user);

    /**
    * 删除
    */
    @RequestMapping("/delete")
    public Result delete(@RequestBody Long[] userIds);

}
